<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8" />
<title>MODEL PAGE</title>
<script type="text/javascript" src="jquery-3.2.1.js"></script>
<script type="text/javascript">
    var Ajax = function ()
    {
        $.getJSON ("http://192.168.56.1:8080/json/userinfo.txt", function (data)
        {
            $.each (data, function (i, item)
            {
                $ ("#disp").append ("<h3>" + item.name + "</h3>");
                $ ("#disp").append ("<p>" + item.sex + "</p>");
				$ ("#disp").append ("<p>" + item.email + "</p>");
            });
        });
    }
</script>
</head>
<body>
    <input type="button" value="Ajax提交" onclick="Ajax();" />
    <div id="disp"></div>
</body>
</html>
